//
//  TopPriceDetailViewController.m
//  MApiSample
//
//  Created by FanChiangShihWei on 2016/8/8.
//  Copyright © 2016年 Mitake. All rights reserved.
//

#import "TopPriceDetailViewController.h"
#if __has_include("MTopPriceDetailView.h")
#import "MTopPriceDetailView.h"

@implementation TopPriceDetailViewController {
    MTopPriceDetailView *_topPriceDetailView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
    _topPriceDetailView = [[MTopPriceDetailView alloc] initWithFrame:self.view.bounds];
    _topPriceDetailView.code = @"600919.sh";
//    _topPriceDetailView.volumeTextColor = [UIColor yellowColor];
    [self.view addSubview:_topPriceDetailView];
}

- (void)viewWillLayoutSubviews {
    [super viewWillLayoutSubviews];
    _topPriceDetailView.frame = CGRectInset(self.view.bounds, 130, 130);
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [_topPriceDetailView reloadData];
}

@end
#endif
